#ifndef PLAYER_HPP
#define PLAYER_HPP
#include <SDL/SDL.h>
#include "lyonsSDL.hpp"

class player {
    public:
        SDL_Surface *pic; //Local Variables
        float x, y;
        float vx, vy;
        float ax, ay;
        bool falling, jumping;
        float friction;
        bool left, right;

        player();
        player(int nx, int ny);

        void move(bool u, bool d, bool l, bool r, int highest, int lowest, int rightmost); //Updaters
        void hMove(bool l, bool r, int rightmost); //Horizontal Movement controller
        void vMove(bool u, bool d, int highest, int lowest); //Verticals
        void setFalling(bool fall) {falling = fall; jumping = fall;}

        void draw(SDL_Surface *dest); //Drawing
    private:
};

#endif // PLAYER_HPP
